//
//  HTMusicMainCell.m
//  HeartTravel
//
//  Created by lanou on 15/10/29.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTMusicMainCell.h"

@implementation HTMusicMainCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat width = frame.size.width;
        CGFloat height = frame.size.height;
        _cellImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, width, width)];
        _cellImgView.layer.cornerRadius = width/2;
        _cellImgView.layer.masksToBounds = YES;
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, width, width, height - width)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, width+10, width, height - width-20)];
        view.backgroundColor = [UIColor whiteColor];
        view.alpha = 0.5;
        
        [self.contentView addSubview:view];
        [self.contentView addSubview:_cellImgView];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

@end
